/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Repository;

import DataModel.EntryStatus;
import DataModel.NotaryCertificate;
import DataModel.NotaryEntry;

/**
 *
 * @author Tomasz Nowak
 */
public interface IRepositoryProxy
{
	void saveEntry( NotaryEntry entry );

	NotaryEntry getEntry( String name );

	boolean contains( NotaryCertificate certificate );

	CertificateConflict checkConflict( NotaryCertificate certificate );

	void updateEntryStatus( NotaryEntry entry, EntryStatus newStatus );

	void connect();

	void close();
}
